<script setup>
import { useRouter } from "vue-router";
import { ref,onBeforeMount } from "vue";
import ItemBox from '../../components/Home/ItemBox.vue'
import { GetCollectapi } from "../../http/api";
const router = useRouter();
const list=ref([])
onBeforeMount(()=>{
    GetCollectapi().then((res)=>{
        console.log(res);
        list.value=res.data.data.list
    })
})
</script>
<template>
  <div>
    <van-nav-bar
      title="我的收藏"
      left-text="返回"
      left-arrow
      @click-left="router.go(-1)"
    />
    <item-box :data="list"></item-box>
  </div>
</template>

<style scoped></style>
